package com.itheima.output;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;

public class OutputDemo03 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis= new FileInputStream("D:\\dev\\a.txt");
        FileOutputStream fos = new FileOutputStream("day12_file&字节流\\a.txt");

        int b;

        while ((b = fis.read())!=-1){
            fos.write(b);
        }

        fis.close();
        fos.close();
    }
}
